package com.zc.im.seqsvr.business;

import reactor.core.publisher.Mono;

/**
 * Project：im
 * Date：2022/4/18
 * Time：17:13
 * Description：业务层
 *
 * @author Challen.Zhang
 * @version 1.0
 */
public interface SeqBusiness {

    /**
     * 根据userId获取seq
     *
     * @param userId userId
     * @return seq
     */
    Mono<Long> getByUserId(Long userId);

    /**
     * 根据userId创建seq
     *
     * @param userId userId
     * @return 成功与否
     */
    Mono<Boolean> createByUserId(Long userId);
}
